import { BrowserModule } from '@angular/platform-browser';
import { NgModule }      from '@angular/core';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';

import { HeroDetailComponent } from './hero-detail.component';
import { HeroService } from './hero.service';
import { HeroesComponent } from './heroes.component';

import { AppRoutingModule } from './app.routing.module';

import { DashboardComponent } from './dashboard.component';

@NgModule({
  
  imports:[
    BrowserModule,
    FormsModule,
    AppRoutingModule
  ],

  declarations: [
    AppComponent,
    HeroDetailComponent,
    HeroesComponent,
    DashboardComponent
  ],

  providers: [HeroService],

  bootstrap: [
    AppComponent
  ]

})

export class AppModule { }